package cn.laixueit.export.controller;

import cn.laixueit.export.service.FileExportService;
import cn.laixueit.export.service.SoftExcelService;
import cn.laixueit.vo.SoftVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author duxiang
 * @date 2023/11/30 10:16
 */

@RestController
@RequestMapping("/file")
public class FileExportController {

    @Resource
    private FileExportService fileExportService;

    @PostMapping("/word/downLoadbookList")
    public void downLoadSoftList(@RequestBody(required = false) List<String> ids, HttpServletResponse response){
        fileExportService.downLoadWordList(ids,response);
    }
}
